/**
 * JAVACC DEMO 1.0
 * @copy right dwusoft company All rights reserved. 
 * @Package com.dwusoft.uct.common  
 */
package com.apache.uct.common;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

/**
 * description:  菜单控制自定义标签
 * @author dwusoft 创建时间：2015-3-31  
 * @Copyright(c)2014:北京--软件技术有限公司
 */
@SuppressWarnings("serial")
public class UctTag extends TagSupport {

	private String actFullEname;

	public int doStartTag() throws JspException {
		LoginUser loginUser = (LoginUser) this.pageContext.getSession().getAttribute("loginUser");
		boolean b = false;
		if (null != loginUser) {
			b = AuthUtil.openStrictLock(actFullEname, loginUser);
		}
		if (b) {
			return super.EVAL_BODY_INCLUDE;
		} else {
			return super.SKIP_BODY;
		}

	}

	public int doEndTag() throws JspException {

		return super.EVAL_PAGE;
	}

	public String getActFullEname() {
		return actFullEname;
	}

	public void setActFullEname(String actFullEname) {
		this.actFullEname = actFullEname;
	}
}
